package com.xm.mapper;

import com.xm.pojo.Videos;
import com.xm.utils.MyMapper;
import com.xm.vo.VideosVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideosCustomMapper extends MyMapper<Videos> {
     List<VideosVo> queryAllVideos(@Param("videoDesc") String videoDesc,@Param("userId") String userId);

     List<VideosVo> queryLikeVideos(@Param("userId") String userId);

     List<VideosVo> queryFollowVideos(@Param("userId") String userId);

     /**
      * 对视频喜欢数量累加
      * @param videoId
      */
     void addVideoLikeCount(String videoId);

     /**
      * 对视频喜欢数量累减
      * @param videoId
      */
     void reduceVideoLikeCount(String videoId);
}